﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NoodlesFriedFood.PlcMake
{

    public class PlcReadBol
    {
        private static PlcReadBol instance;
        private PlcReadBol() { }

        public static PlcReadBol Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new PlcReadBol();
                }
                return instance;
            }
        }
        /// <summary>
        /// 缺水-面条
        /// </summary>
        public bool Matter1 { get; set; } = false;
        /// <summary>
        /// 缺碗-面条
        /// </summary>
        public bool Matter2 { get; set; } = false;
        /// <summary>
        /// 水盆缺水-面条
        /// </summary>
        public bool Matter3 { get; set; } = false;
        public bool Matter4 { get; set; } = false;
        public bool Matter5 { get; set; } = false;
        /// <summary>
        /// 缺碗-炸串
        /// </summary>
        public bool Matter6 { get; set; } = false;
        /// <summary>
        /// 取料1
        /// </summary>
        public bool Matter7 { get; set; } = false;
        /// <summary>
        /// 取料2
        /// </summary>
        public bool Matter8 { get; set; } = false;
        /// <summary>
        /// 取料3
        /// </summary>
        public bool Matter9 { get; set; } = false;
        /// <summary>
        /// 取料4
        /// </summary>
        public bool Matter10 { get; set; } = false;
        /// <summary>
        /// 取料5
        /// </summary>
        public bool Matter11 { get; set; } = false;
        /// <summary>
        /// 取料6
        /// </summary>
        public bool Matter12 { get; set; } = false;
        public bool Matter13 { get; set; } = false;
        /// <summary>
        /// 面条可以点
        /// </summary>
        public bool Matter14 { get; set; } = false;
        /// <summary>
        /// 炸货可以点
        /// </summary>
        public bool Matter15 { get; set; } = false;
        /// <summary>
        /// 机器人1异常
        /// </summary>
        public bool Jaka1_Error { get; set; } = false;
        /// <summary>
        /// 机器人2异常
        /// </summary>
        public bool Jaka2_Error { get; set; } = false;
        ///// <summary>
        ///// 碗1流程
        ///// </summary>
        //public bool Making_m { get; set; } = false;
        ///// <summary>
        ///// 碗2流程
        ///// </summary>
        //public bool Making_z { get; set; } = false;
        /// <summary>
        /// 碗1流程
        /// </summary>
        public bool Making1_1 { get; set; } = false;
        /// <summary>
        /// 碗2流程
        /// </summary>
        public bool Making1_2 { get; set; } = false;
        /// <summary>
        /// 碗3流程
        /// </summary>
        public bool Making1_3 { get; set; } = false;
        /// <summary>
        /// 桶1流程
        /// </summary>
        public bool Making2_1 { get; set; } = false;
        /// <summary>
        /// 桶2流程
        /// </summary>
        public bool Making2_2 { get; set; } = false;
    }
    public class PlcReadMsg
    {
        private static PlcReadMsg instance;
        private PlcReadMsg() { }

        public static PlcReadMsg Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new PlcReadMsg();
                }
                return instance;
            }
        }
        /// <summary>
        /// 缺水-面条
        /// </summary>
        public int Matter1 { get; set; } = 0;
        /// <summary>
        /// 缺碗-面条
        /// </summary>
        public int Matter2 { get; set; } = 0;
        /// <summary>
        /// 水盆缺水-面条
        /// </summary>
        public int Matter3 { get; set; } = 0;
        public int Matter4 { get; set; } = 0;
        public int Matter5 { get; set; } = 0;
        /// <summary>
        /// 缺碗-炸串
        /// </summary>
        public int Matter6 { get; set; } = 0;
        /// <summary>
        /// 取料1
        /// </summary>
        public int Matter7 { get; set; } = 0;
        /// <summary>
        /// 取料2
        /// </summary>
        public int Matter8 { get; set; } = 0;
        /// <summary>
        /// 取料3
        /// </summary>
        public int Matter9 { get; set; } = 0;
        /// <summary>
        /// 取料4
        /// </summary>
        public int Matter10 { get; set; } = 0;
        /// <summary>
        /// 取料5
        /// </summary>
        public int Matter11 { get; set; } = 0;
        /// <summary>
        /// 取料6
        /// </summary>
        public int Matter12 { get; set; } = 0;
        public int Matter13 { get; set; } = 0;
        public int Matter14 { get; set; } = 0;
        public int Matter15 { get; set; } = 0;
        /// <summary>
        /// 机器人1异常
        /// </summary>
        public int Jaka1_Error { get; set; } = 0;
        /// <summary>
        /// 机器人2异常
        /// </summary>
        public int Jaka2_Error { get; set; } = 0;
        ///// <summary>
        ///// 碗1流程
        ///// </summary>
        //public bool Making_m { get; set; } = false;
        ///// <summary>
        ///// 碗2流程
        ///// </summary>
        //public bool Making_z { get; set; } = false;
        /// <summary>
        /// 碗1流程
        /// </summary>
        public int Making1_1 { get; set; } = 0;
        /// <summary>
        /// 碗2流程
        /// </summary>
        public int Making1_2 { get; set; } = 0;
        /// <summary>
        /// 碗3流程
        /// </summary>
        public int Making1_3 { get; set; } = 0;
        /// <summary>
        /// 桶1流程
        /// </summary>
        public int Making2_1 { get; set; } = 0;
        /// <summary>
        /// 桶2流程
        /// </summary>
        public int Making2_2 { get; set; } = 0;

    }
}
